<ui:composition template="Plantilla.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ace="http://www.icefaces.org/icefaces/components"
                xmlns:ice="http://www.icesoft.com/icefaces/component">
    <ui:define name="content">
        <ice:form >               
            <ice:panelGroup id="messagePanel" layout="block">
                <ice:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </ice:panelGroup>
            <ice:panelGroup>
                <h:panelGrid columns="3">
                    <div class="background"></div>
                    <h:graphicImage url="images/interfaz_software_acreditacion_05.jpg"/>                    
                    <ice:panelGroup rendered="#{!administracion.isDescarga}">
                        <h:commandButton style="font-weight: bold; color: #3DC6FF; font-size: 15px; background-color: whitesmoke" 
                                        action="ingreso.xhtml" value="Ingresar"/> <br />
                        <!--
                        <h:commandButton style="font-weight: bold; color: #3DC6FF; font-size: 15px; background-color: whitesmoke" 
                                        action="ingreso.xhtml" value="Realizar PreInscripción"/> <br /> -->
                        <h:commandButton style="font-weight: bold; color: #3DC6FF; font-size: 15px; background-color: whitesmoke" 
                                        action="#{administracion.prepareDescarga()}" value="Descargar Recibo"/> <br /> 
                         
                    </ice:panelGroup>
                    
                    <ice:panelGroup rendered="#{administracion.isDescarga}">
                        <h:outputLabel value="Documento del estudiante: "/> <br />
                        <h:inputText value="#{administracion.documento}" size="13" style="padding: .5em"/> 
                         <h:commandButton style="font-weight: bold; color: #3DC6FF; font-size: 15px; background-color: whitesmoke; padding-top:" 
                                          value="Aceptar" action="#{administracion.descargaRecibo()}"/>
                    </ice:panelGroup>
                </h:panelGrid>
                <div align="right">
                    <h:commandButton rendered="#{administracion.isDescarga}"
                                     style="background: no-repeat; border: none" 
                                     image="/images/btn_atras.png" alt="Atras" 
                                     action="#{administracion.volverDescarga()}" immediate="true"/>  
                </div>
            </ice:panelGroup>            
        </ice:form>
    </ui:define>
</ui:composition>